package org.kl.bf.entity.basic;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.kl.bf.entity.AuditableEntity;
import org.kl.bf.entity.Excel;
import org.kl.bf.utils.BasicConstants;

/**
 * 系統公告
 * 
 * @Author hqm
 * @CreateTime 2014年7月6日 上午8:50:51
 */
// JPA标识
@Entity
@Table(name = "basic_notice")
public class Notice extends AuditableEntity {

	private static final long serialVersionUID = -2926369871407757949L;
	@Excel(exportName = "公告标题")
	private String noticeTitle;
	@Excel(exportName = "公告内容")
	private String noticeContent;
	@Excel(exportName = "是否启用", exportConvertSign = 1)
	private Integer enable = BasicConstants.NO_INT;

	public String getNoticeTitle() {
		return noticeTitle;
	}

	public void setNoticeTitle(String noticeTitle) {
		this.noticeTitle = noticeTitle;
	}

	public String getNoticeContent() {
		return noticeContent;
	}

	public void setNoticeContent(String noticeContent) {
		this.noticeContent = noticeContent;
	}

	public Integer getEnable() {
		return enable;
	}

	public void setEnable(Integer enable) {
		this.enable = enable;
	}

	/**
	 * Excel导出值转换
	 * 
	 * @return
	 */
	public String enableConvert() {
		return enable == 1 ? "是" : "否";
	}
}
